"""
Created on 06-Jan-2010

@author: dexen
"""



import rpyc

from dexen.system.base import service

def test1():
    node1 = rpyc.connect_by_service("NODE1",
                                    config=service.default_config)
    node2 = rpyc.connect_by_service("NODE2",
                                    config=service.default_config)
    node3 = rpyc.connect_by_service("NODE3",
                                    config=service.default_config)
    
    node1.root.create_master("MASTER1")
    node2.root.create_slave("MASTER1", "SLAVE1")
    node3.root.create_slave("MASTER1", "SLAVE2")
    
    
if __name__ == "__main__":
    test1()
